using Engine;
using Engine.OldSerialization;

namespace RuthlessConquest {
    public class GameStateMessage : Message {
        public class Serializer : ISerializer<GameStateMessage> {
            public void Serialize(InputArchive archive, ref GameStateMessage value) {
                archive.Serialize("GameState", ref value.GameState);
                archive.Serialize("NonDefeatedFactions", ref value.NonDefeatedFactions);
            }

            public void Serialize(OutputArchive archive, GameStateMessage value) {
                archive.Serialize("GameState", value.GameState);
                archive.Serialize("NonDefeatedFactions", value.NonDefeatedFactions);
            }
        }

        public GameState GameState;

        public DynamicArray<Faction> NonDefeatedFactions;
    }
}